﻿namespace Quail
{
    /// <summary>
    /// Wraps the input@type=checkbox control
    /// </summary>
    public class WebCheckBox : WebInput
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WebCheckBox"/> class.
        /// </summary>
        /// <param name="container">The owning html container</param>
        /// <param name="selector">The jQuery selector for the control</param>
        public WebCheckBox(WebControlContainer container, string selector)
            : base(container, selector)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="WebCheckBox"/> class.
        /// </summary>
        /// <param name="control">The control.</param>
        public WebCheckBox(WebControl control)
            :base(control)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="WebCheckBox"/> class.
        /// </summary>
        public WebCheckBox()
        {
        }

        /// <summary>
        /// Unchecks this control
        /// </summary>
		public override void Clear()
		{
			Checked = false;
		}
		
    }
}
